//
//  YDPositionModel.h
//  PeiZiWangBei
//
//  Created by LK-IOS on 2017/11/28.
//  Copyright © 2017年 LK-IOS. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface YDPositionModel : NSObject

/*
 "applyAmount": 0,
 "buyingPrice": 0,
 "buyingTime": "2017-11-28T03:18:56.238Z",
 "createTime": "2017-11-28T03:18:56.238Z",
 "deferred": true,
 "delegateNumber": "string",
 "id": 0,
 "investorId": 0,
 "lossPoint": 0,
 "lossPosition": 0,
 "lossWarnPosition": 0,
 "numberOfStrand": 0,
 "profitOrLoss": 0,
 "profitPoint": 0,
 "profitPosition": 0,
 "profitWarnPosition": 0,
 "publisherId": 0,
 "publisherSerialCode": "string",
 "reserveFund": 0,
 "sellingPrice": 0,
 "sellingTime": "2017-11-28T03:18:56.238Z",
 "serialCode": "string",
 "serviceFee": 0,
 "state": "UNKONWN",
 "stockCode": "string",
 "strategyTypeId": 0
 */
@property (nonatomic , copy) NSString *stockCode;//股票代码
@property (nonatomic , copy) NSString *stockName;//股票名称
@property (nonatomic , copy) NSString *buyingTime;//点买时间
@property (nonatomic , copy) NSString *createTime;//点买记录创建时间
@property (nonatomic , copy) NSString *sellingTime;//卖出时间
@property (nonatomic , copy) NSString *state;//状态

@property (nonatomic , copy) NSString *applyAmount;//申请资金
@property (nonatomic , copy) NSString *buyingPrice;//买入价格
@property (nonatomic , copy) NSString *lastPrice;//当前价
@property (nonatomic , copy) NSString *sellingPrice;//卖出价格
@property (nonatomic , assign) BOOL deferred;//是否递延费
@property (nonatomic , copy) NSString *delegateNumber;//委托编号，证券账号购买股票后的交易编号
@property (nonatomic , assign) NSInteger Id;//
@property (nonatomic , copy) NSString *investorId;//投资人ID
@property (nonatomic , copy) NSString *lossPoint;//止损点
@property (nonatomic , copy) NSString *lossPosition;//止损点位
@property (nonatomic , copy) NSString *lossWarnPosition;//止损预警点位
@property (nonatomic , copy) NSString *numberOfStrand;//持股数
@property (nonatomic , copy) NSString *profitOrLoss;//盈亏,总的盈亏
@property (nonatomic , copy) NSString *publisherProfitOrLoss;//发布人盈亏
@property (nonatomic , copy) NSString *profitPoint;//止盈点
@property (nonatomic , copy) NSString *profitPosition;//止盈点位
@property (nonatomic , copy) NSString *profitWarnPosition;//止盈预警点位
@property (nonatomic , assign) NSInteger publisherId;//发布人ID
@property (nonatomic , copy) NSString *publisherSerialCode;//发布人序列号
@property (nonatomic , copy) NSString *reserveFund;//保证金
@property (nonatomic , copy) NSString *serialCode;//系列号
@property (nonatomic , copy) NSString *serviceFee;// 信息服务费
@property (nonatomic , assign) NSInteger strategyTypeId;//策略类型ID
@property (nonatomic , copy) NSString *windControlType;//交际结算风控类型
@property (nonatomic , copy) NSString *tradeNo;//交易编号


@property (nonatomic , assign) NSInteger deferredDays;//递延天数

@property (nonatomic , copy) NSString *deferredCharges;//递延费
@property (nonatomic , copy) NSString *deferredFee;//交易失败的递延费

@property (nonatomic , copy) NSString *stockStatus;//是不是停牌了   0停牌，1正常

///////////持仓中
//年月日
@property (nonatomic , copy) NSString *buyYearStr;
//时分秒
@property (nonatomic , copy) NSString *buyHourStr;

//卖出时间
@property (nonatomic , copy) NSString *saleYearStr;
@property (nonatomic , copy) NSString *saleHourStr;

//持仓状态
@property (nonatomic , assign) BOOL isCanSale;
//状态 , 图片名称
@property (nonatomic , copy) NSString *stateString;
//风控类型字段
@property (nonatomic , copy) NSString *windControlString;
//股票数
@property (nonatomic , copy) NSString *pzNumberOfStrand;
//买入价及当前价,卖出价
@property (nonatomic , copy) NSString *pzBuyingPrice;
@property (nonatomic , copy) NSString *pzCurrentPrice;
@property (nonatomic , copy) NSString *pzSellingPrice;
@property (nonatomic , copy) NSString *lossNumber;//止损钱数

//整个股票交易盈亏profitOrLoss
@property (nonatomic , copy) NSString *pzProfitOrLoss;
//用户自己的交易盈亏 publisherProfitOrLoss
@property (nonatomic , copy) NSString *pzPublisherProfitOrLoss;
//点买本金
@property (nonatomic , copy) NSString *pzReserveFund;
//策略
@property (nonatomic , assign) NSInteger getCreatTimeFromNow;
//信服服务费用
@property (nonatomic , copy) NSString *pzServiceFee;


//详情扣减
@property (nonatomic , copy) NSString *detailDeduction;
//详情解冻
@property (nonatomic , copy) NSString *detailThaw;


//递延费
@property (nonatomic , copy) NSString *pzDeferredCharges;
//
@property (nonatomic , copy) NSString *pzDeferredFee;

//杠杆倍数
@property (nonatomic, strong)NSNumber *lossMultiple;
//持仓类型
@property (nonatomic, strong)NSNumber *cycle;


//结算  是不是买入或者卖出失败了
@property (nonatomic , assign) BOOL isSuccess;



@end
